import globals from "globals";
import pluginVue from "eslint-plugin-vue";
import { defineConfig } from "eslint/config";

export default defineConfig([
  { 
    files: ["**/*.{js,mjs,cjs,vue}"], 
    languageOptions: { 
      globals: globals.browser 
    } 
  },
  // Vue 插件配置
  {
    ...pluginVue.configs["flat/essential"],
    rules: {
      ...pluginVue.configs["flat/essential"].rules,
      // 关闭多单词组件名检查
      "vue/multi-word-component-names": "off"
    }
  }
]);